const path = require('path');
const webpack = require('webpack');

module.exports = {
    entry: {
        idx: path.resolve(__dirname, 'src/idx.js'),
        vendor: ['lodash']
    },
    output: {
        path: path.resolve(__dirname, 'dist/'),
        filename: '[name].[chunkHash].js'
    },
    plugins: [
    new webpack.optimize.CommonsChunkPlugin({
      name: 'vendor',
      minChunks: Infinity
    })
    ,
    new webpack.optimize.CommonsChunkPlugin({
      name: 'manifest-k',
      minChunks: Infinity
    })
    ]
}
